package edu.neusoft.yiqibike.common.entity.convert;

import edu.neusoft.yiqibike.common.entity.mysql.Admin;
import edu.neusoft.yiqibike.common.entity.vo.TreeVo;

/**
 * User：lyc
 * Date：2017-12-30
 * Time：18:24
 * Description：
 */
public class AdminConverter extends Converter<TreeVo, Admin> {
    public AdminConverter() {
        super(admin -> new TreeVo(admin.getId(), admin.getRealname(), "owner"),
                vo -> new Admin(vo.getId(), vo.getLabel()));
    }
}
